package com.wyfan.scaffold.test;

import java.util.concurrent.CountDownLatch;

@Cal(submit=true)
public class Task2 extends CalTaskAbstract {


    public Task2(CountDownLatch taskCountDownLatch, boolean submit, long id) {
        super(taskCountDownLatch, submit, id);
    }

    @Override
    public void execute() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("TASK-2");
    }
}
